package com.lx.spring.book.dao;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository
//@Primary
@Scope(value = "prototype")
public class BookDAO {

    private String label = "1";

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("label", label)
                .toString();
    }
}
